var env;
try {
    var resJson = {
    "res": {
        "config/config.js": {
            "uri": "/cashier-wap-new-d/config/config_6aa0c52.js",
            "type": "js"
        },
        "controllers/router.js": {
            "uri": "/cashier-wap-new-d/controllers/router_3c510c1.js",
            "type": "js"
        },
        "css/default/card.css": {
            "uri": "/cashier-wap-new-d/css/card_35438d6.css",
            "type": "css"
        },
        "css/default/etopscroll.css": {
            "uri": "/cashier-wap-new-d/css/etopscroll_73d1795.css",
            "type": "css"
        },
        "css/default/global.css": {
            "uri": "/cashier-wap-new-d/css/global_7c63ba3.css",
            "type": "css"
        },
        "css/default/main.css": {
            "uri": "/cashier-wap-new-d/css/main_fbf361c.css",
            "type": "css"
        },
        "css/default/wTools.css": {
            "uri": "/cashier-wap-new-d/css/wTools_4cac3ec.css",
            "type": "css"
        },
        "css/default/pay.css": {
            "uri": "/cashier-wap-new-d/css/pay_a29eb0a.css",
            "type": "css"
        },
        "libraries/fisIndex.js": {
            "uri": "/cashier-wap-new-d/libraries/fisIndex_f300b55.js",
            "type": "js"
        },
        "libraries/antbridge.min.js": {
            "uri": "/cashier-wap-new-d/libraries/antbridge.min.js",
            "type": "js"
        },
        "libraries/area.js": {
            "uri": "/cashier-wap-new-d/libraries/area.js",
            "type": "js"
        },
        "libraries/backbone-min.js": {
            "uri": "/cashier-wap-new-d/libraries/backbone-min.js",
            "type": "js"
        },
        "libraries/etopscroll.js": {
            "uri": "/cashier-wap-new-d/libraries/etopscroll.js",
            "type": "js"
        },
        "libraries/require.js": {
            "uri": "/cashier-wap-new-d/libraries/require.js",
            "type": "js"
        },
        "libraries/text.js": {
            "uri": "/cashier-wap-new-d/libraries/text.js",
            "type": "js"
        },
        "libraries/underscore-min.js": {
            "uri": "/cashier-wap-new-d/libraries/underscore-min.js",
            "type": "js"
        },
        "libraries/validate.js": {
            "uri": "/cashier-wap-new-d/libraries/validate.js",
            "type": "js"
        },
        "libraries/wTools.js": {
            "uri": "/cashier-wap-new-d/libraries/wTools.js",
            "type": "js"
        },
        "libraries/zepto_cookie.js": {
            "uri": "/cashier-wap-new-d/libraries/zepto_cookie.js",
            "type": "js"
        },
        "libraries/zepto.min.1.js": {
            "uri": "/cashier-wap-new-d/libraries/zepto.min.1.js",
            "type": "js"
        },
        "libraries/zepto.min.js": {
            "uri": "/cashier-wap-new-d/libraries/zepto.min.js",
            "type": "js"
        },
        "templates/agreement.html": {
            "uri": "/cashier-wap-new-d/templates/agreement_ffe72eb.html",
            "type": "html"
        },
        "templates/bankList.html": {
            "uri": "/cashier-wap-new-d/templates/bankList_7901cb2.html",
            "type": "html"
        },
        "templates/cardList.html": {
            "uri": "/cashier-wap-new-d/templates/cardList_3710fff.html",
            "type": "html"
        },
        "templates/cardList2.html": {
            "uri": "/cashier-wap-new-d/templates/cardList2_85879a4.html",
            "type": "html"
        },
        "templates/cardListArrow.html": {
            "uri": "/cashier-wap-new-d/templates/cardListArrow_4e08a33.html",
            "type": "html"
        },
        "templates/client/aliPay.html": {
            "uri": "/cashier-wap-new-d/templates/client/aliPay_bcbfae3.html",
            "type": "html"
        },
        "templates/client/pay.html": {
            "uri": "/cashier-wap-new-d/templates/client/pay_83436f1.html",
            "type": "html"
        },
        "templates/client/payAmount.html": {
            "uri": "/cashier-wap-new-d/templates/client/payAmount_7fcf037.html",
            "type": "html"
        },
        "templates/client/payWayList.html": {
            "uri": "/cashier-wap-new-d/templates/client/payWayList_74c73e8.html",
            "type": "html"
        },
        "templates/client/success.html": {
            "uri": "/cashier-wap-new-d/templates/client/success_ed80f7f.html",
            "type": "html"
        },
        "templates/client/toPay.html": {
            "uri": "/cashier-wap-new-d/templates/client/toPay_51cee70.html",
            "type": "html"
        },
        "templates/client/wxPayTest.html": {
            "uri": "/cashier-wap-new-d/templates/client/wxPayTest_bcbfae3.html",
            "type": "html"
        },
        "templates/client/wxSuccess.html": {
            "uri": "/cashier-wap-new-d/templates/client/wxSuccess_e8c126f.html",
            "type": "html"
        },
        "templates/fail.html": {
            "uri": "/cashier-wap-new-d/templates/fail_be066bb.html",
            "type": "html"
        },
        "templates/head.html": {
            "uri": "/cashier-wap-new-d/templates/head_6e52191.html",
            "type": "html"
        },
        "templates/home.html": {
            "uri": "/cashier-wap-new-d/templates/home_8de673a.html",
            "type": "html"
        },
        "templates/myCard.html": {
            "uri": "/cashier-wap-new-d/templates/myCard_3963187.html",
            "type": "html"
        },
        "templates/newCard.html": {
            "uri": "/cashier-wap-new-d/templates/newCard_e7601c5.html",
            "type": "html"
        },
        "templates/olpay/bankList.html": {
            "uri": "/cashier-wap-new-d/templates/olpay/bankList_fc7d82a.html",
            "type": "html"
        },
        "templates/olpay/detail.html": {
            "uri": "/cashier-wap-new-d/templates/olpay/detail_e92d8e1.html",
            "type": "html"
        },
        "templates/olpay/order.html": {
            "uri": "/cashier-wap-new-d/templates/olpay/order_40ef0ee.html",
            "type": "html"
        },
        "templates/qpay/addAgreement.html": {
            "uri": "/cashier-wap-new-d/templates/qpay/addAgreement_8a2220a.html",
            "type": "html"
        },
        "templates/qpay/addCreaditInfo.html": {
            "uri": "/cashier-wap-new-d/templates/qpay/addCreaditInfo_eecc498.html",
            "type": "html"
        },
        "templates/qpay/addDebitInfo.html": {
            "uri": "/cashier-wap-new-d/templates/qpay/addDebitInfo_bd5246b.html",
            "type": "html"
        },
        "templates/qpay/addunbind.html": {
            "uri": "/cashier-wap-new-d/templates/qpay/addunbind_8e156cb.html",
            "type": "html"
        },
        "templates/qpay/addVerify.html": {
            "uri": "/cashier-wap-new-d/templates/qpay/addVerify_89b0a18.html",
            "type": "html"
        },
        "templates/qpay/creaditCard.html": {
            "uri": "/cashier-wap-new-d/templates/qpay/creaditCard_7cc4c00.html",
            "type": "html"
        },
        "templates/qpay/debitCard.html": {
            "uri": "/cashier-wap-new-d/templates/qpay/debitCard_95f9a46.html",
            "type": "html"
        },
        "templates/qpay/haveCard.html": {
            "uri": "/cashier-wap-new-d/templates/qpay/haveCard_40d64e5.html",
            "type": "html"
        },
        "templates/qpay/limitList.html": {
            "uri": "/cashier-wap-new-d/templates/qpay/limitList_d6c6877.html",
            "type": "html"
        },
        "templates/qpay/noCard.html": {
            "uri": "/cashier-wap-new-d/templates/qpay/noCard_ffaa0a8.html",
            "type": "html"
        },
        "templates/qpay/orderInfo.html": {
            "uri": "/cashier-wap-new-d/templates/qpay/orderInfo_eb48481.html",
            "type": "html"
        },
        "templates/qpay/qPayResult.html": {
            "uri": "/cashier-wap-new-d/templates/qpay/qPayResult_1c08a13.html",
            "type": "html"
        },
        "templates/qpay/unbind.html": {
            "uri": "/cashier-wap-new-d/templates/qpay/unbind_7cdb7da.html",
            "type": "html"
        },
        "templates/qpay/uploadCreadit.html": {
            "uri": "/cashier-wap-new-d/templates/qpay/uploadCreadit_af6529a.html",
            "type": "html"
        },
        "templates/qpay/uploadDebit.html": {
            "uri": "/cashier-wap-new-d/templates/qpay/uploadDebit_bc5e4a7.html",
            "type": "html"
        },
        "templates/success.html": {
            "uri": "/cashier-wap-new-d/templates/success_c96c5d4.html",
            "type": "html"
        },
        "templates/tied/bindCard.html": {
            "uri": "/cashier-wap-new-d/templates/tied/bindCard_4306ba4.html",
            "type": "html"
        },
        "templates/tied/bindResult.html": {
            "uri": "/cashier-wap-new-d/templates/tied/bindResult_d8d53e7.html",
            "type": "html"
        },
        "templates/tied/creaditCard.html": {
            "uri": "/cashier-wap-new-d/templates/tied/creaditCard_25d5e6d.html",
            "type": "html"
        },
        "templates/tied/debitCard.html": {
            "uri": "/cashier-wap-new-d/templates/tied/debitCard_159e9bc.html",
            "type": "html"
        },
        "templates/tied/verifyCode.html": {
            "uri": "/cashier-wap-new-d/templates/tied/verifyCode_891cdb5.html",
            "type": "html"
        },
        "templates/wait.html": {
            "uri": "/cashier-wap-new-d/templates/wait_c7b0b62.html",
            "type": "html"
        },
        "view/client/aliPayView.js": {
            "uri": "/cashier-wap-new-d/view/client/aliPayView_1d5f2ee.js",
            "type": "js"
        },
        "view/client/payAmountView.js": {
            "uri": "/cashier-wap-new-d/view/client/payAmountView_d8106b8.js",
            "type": "js"
        },
        "view/client/payView.js": {
            "uri": "/cashier-wap-new-d/view/client/payView_5d3a1da.js",
            "type": "js"
        },
        "view/client/successView.js": {
            "uri": "/cashier-wap-new-d/view/client/successView_9bfbfb2.js",
            "type": "js"
        },
        "view/client/toPayView.js": {
            "uri": "/cashier-wap-new-d/view/client/toPayView_13c5f02.js",
            "type": "js"
        },
        "view/client/wxPayTestView.js": {
            "uri": "/cashier-wap-new-d/view/client/wxPayTestView_7e26028.js",
            "type": "js"
        },
        "view/client/wxSuccessView.js": {
            "uri": "/cashier-wap-new-d/view/client/wxSuccessView_f654607.js",
            "type": "js"
        },
        "view/failView.js": {
            "uri": "/cashier-wap-new-d/view/failView_b170f10.js",
            "type": "js"
        },
        "view/headView.js": {
            "uri": "/cashier-wap-new-d/view/headView_ef8d0da.js",
            "type": "js"
        },
        "view/homeView.js": {
            "uri": "/cashier-wap-new-d/view/homeView_6aefa77.js",
            "type": "js"
        },
        "view/newCardView.js": {
            "uri": "/cashier-wap-new-d/view/newCardView_837d0b4.js",
            "type": "js"
        },
        "view/olpay/olPayView.js": {
            "uri": "/cashier-wap-new-d/view/olpay/olPayView_ebfc7fb.js",
            "type": "js"
        },
        "view/qpay/qPayCardInfoView.js": {
            "uri": "/cashier-wap-new-d/view/qpay/qPayCardInfoView_5e301c9.js",
            "type": "js"
        },
        "view/qpay/qPayResultView.js": {
            "uri": "/cashier-wap-new-d/view/qpay/qPayResultView_ef9a150.js",
            "type": "js"
        },
        "view/qpay/qPayView.js": {
            "uri": "/cashier-wap-new-d/view/qpay/qPayView_aa1c682.js",
            "type": "js"
        },
        "view/successView.js": {
            "uri": "/cashier-wap-new-d/view/successView_0415c73.js",
            "type": "js"
        },
        "view/tied/bindCardView.js": {
            "uri": "/cashier-wap-new-d/view/tied/bindCardView_a9a17a4.js",
            "type": "js"
        },
        "view/tied/bindResultView.js": {
            "uri": "/cashier-wap-new-d/view/tied/bindResultView_9d49365.js",
            "type": "js"
        },
        "view/tied/creaditCardView.js": {
            "uri": "/cashier-wap-new-d/view/tied/creaditCardView_074e792.js",
            "type": "js"
        },
        "view/tied/debitCardView.js": {
            "uri": "/cashier-wap-new-d/view/tied/debitCardView_9e31dc7.js",
            "type": "js"
        },
        "view/tied/verifyCodeView.js": {
            "uri": "/cashier-wap-new-d/view/tied/verifyCodeView_a4f88f9.js",
            "type": "js"
        },
        "view/unbindView.js": {
            "uri": "/cashier-wap-new-d/view/unbindView_5e8fc22.js",
            "type": "js"
        },
        "view/waitView.js": {
            "uri": "/cashier-wap-new-d/view/waitView_8237410.js",
            "type": "js"
        }
    },
    "pkg": {}
};
    console.log("RequireJs ResMap Loading !!! ")
    env = "release";
} catch (d) {
    __uri = function (path) {
        var index = path.lastIndexOf(".");
        if (index > 0) {
            path = path.substr(0, index);

        }
        return path;
    }
    env = "dev";
}

var pathMaps = {
    zepto: "libraries/zepto.min.js",
    //测试
    localStorage: "libraries/backbone-localstorage.js",
    backbone: "libraries/backbone-min.js",
    underscore: "libraries/underscore-min.js",
    text: "libraries/text.js",
    etopscroll: "libraries/etopscroll.js",
    config: "config/config.js",
    wTools: "libraries/wTools.js"
    ,area: "libraries/area.js"
    ,cookie: "libraries/zepto_cookie.js"
    ,validate: "libraries/validate.js"
    //添加 antbridge
    ,antbridge: "libraries/antbridge.min.js"
};

if (env === "release") {
    for (var key in resJson.res) {
        if (key.indexOf("view/") == 0 || key.indexOf("controllers/") == 0 || key.indexOf("config/") == 0 || key.indexOf("templates/") == 0) {
            var index = key.lastIndexOf(".");
            if (index !== -1) {
                var shortKey = key.substring(0, index);
                var ext = key.substring(index + 1, key.length);
                if (shortKey.indexOf("config/") == 0) {
                    shortKey = shortKey.substr(7, shortKey.length);
                    console.log("author: weiew,winston")
                }
                var url = resJson.res[key].uri;
                url = url.substring(0, url.indexOf(ext));
                pathMaps[shortKey] = url;
            }
        }
    }

    for (var key in pathMaps) {
        var url = pathMaps[key];
        var index = url.lastIndexOf(".");
        if (index > 0) {
            url = url.substr(0, index);
            pathMaps[key] = url;
        }
    }
}
require.config({
    baseUrl: "",
    paths: pathMaps,
    shim: {
        'backbone': {
            deps: ['underscore', 'zepto','cookie'],
            exports: 'Backbone'
        },
        'etopscroll': {
            deps: ['zepto']
        },
        'zepto': {
            exports: '$'
        },
        'underscore': {
            exports: '_'
        }
    }
});

require(["controllers/router"], function (router) {
        window.router = new router();
        Backbone.history.start();
    }
);